﻿<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Register TagPrefix="cc3" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Page language="c#" Inherits="Discuz.Web.Admin.addadminusergroup" Codebehind="global_addadminusergroup.aspx.cs" %>
<%@ Register TagPrefix="uc1" TagName="UserGroupPowerSetting" Src="../UserControls/usergrouppowersetting.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>添加管理组</title>
		<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />        
		<link href="../styles/tab.css" type="text/css" rel="stylesheet" />
		<link href="../styles/colorpicker.css" type="text/css" rel="stylesheet" />
   	    <link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
		<script type="text/javascript" src="../js/common.js"></script>
		<script type="text/javascript" src="../js/modalpopup.js"></script>
		<script type="text/javascript">	    
	        function validate(theform)
	        {
	            return validatebonusprice();
	        }
	        function resetPage()
	        {
	            document.getElementById('success').style.display = 'none'
	            document.getElementById("AddUserGroupInf").disabled = false;
	        }
	    </script>
    </head>

	<body>
		<form id="Form1" runat="server">
	        <cc1:Hint id="Hint1" runat="server" HintImageUrl="../images"></cc1:Hint>
		    <br />
		    <table class="table1" cellSpacing="0" cellPadding="4" width="100%" border="0">
		        <tr>
		            <td width="2px"></td>
		            <td>
			    <cc3:TabControl id="TabControl1" SelectionMode="Client" runat="server" TabScriptPath="../js/tabstrip.js" width="660" height="100%">
			    <cc3:TabPage Caption="基本信息" ID="tabPage51">
			        <table cellspacing="0" cellpadding="4" width="100%" align="center">
                        <tr>
                            <td  class="panelbox" width="50%" align="left">
                                <table width="100%">
                                    <tr>
						                <td style="width: 90px">关联管理组:</td>
						                <td><cc1:DropDownList id="radminid" runat="server" AutoPostBack="True" HintInfo="设置采用哪组管理组的基本设置"></cc1:DropDownList></td>
                                    </tr>
                                    <tr>
						                <td>组名称颜色:</td>
						                <td>
							                <cc1:ColorPicker id="color" runat="server" ReadOnly="True"  LeftOffSet="-23" TopOffSet="-53" HintInfo="用户组名称的显示颜色"></cc1:ColorPicker>
							            </td>
                                    </tr>
                                    <tr>
						                <td>阅读权限:</td>
						                <td>
							                <cc1:TextBox id="readaccess" runat="server"  CanBeNull="必填" RequiredFieldType="数据校验" Text="0" Size="5" MaxLength="4" HintInfo="设置用户浏览帖子或附件的权限级别,范围 0~255,0 为禁止用户浏览任何帖子或附件.当用户的阅读权限小于帖子或附件的阅读权限许可(默认时为 1)时,用户将不能阅读该帖子或下载该附件."></cc1:TextBox>
							                <asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ControlToValidate="readaccess" 
                                             ErrorMessage="请输入整数" ValidationExpression="^[-]?\d+\d*$">
                                             </asp:RegularExpressionValidator>
						                </td>
                                    </tr>
                                    <tr>
						                <td>短消息最多条数:</td>
						                <td>
							                <cc1:TextBox id="maxpmnum" runat="server" CanBeNull="必填" RequiredFieldType="数据校验" Text="0" Size="5"  MaxLength="4" HintInfo="设置用户短消息最大可保存的消息数目,0 为禁止使用短消息"></cc1:TextBox>
							                <asp:RegularExpressionValidator id="homephone" runat="server" ControlToValidate="maxpmnum" 
                                            ErrorMessage="请输入正整数或者零" ValidationExpression="^[0-9]*$">
                                            </asp:RegularExpressionValidator>
						                </td>
                                    </tr>
                                    <tr>
						                <td>上传单个附件允<br />许的最大字节数:</td>
						                <td>
							                <cc1:TextBox id="maxattachsize" runat="server"  HintInfo="设置上传单个附件允许最大字节数." HintTitle="提示" CanBeNull="必填" 
							                RequiredFieldType="数据校验" Text="0" Size="10"  MaxLength="9"></cc1:TextBox>(单位:字节)
							                <select onchange="document.getElementById('TabControl1_tabPage51_maxattachsize').value=this.value">
							                    <option value="">请选择</option>
								                <option value="51200">50K</option>
								                <option value="102400">100K</option>
								                <option value="153600">150K</option>
								                <option value="204800">200K</option>
								                <option value="256000">250K</option>
								                <option value="307200">300K</option>
								                <option value="358400">350K</option>
								                <option value="409600">400K</option>
								                <option value="512000">500K</option>
								                <option value="614400">600K</option>
								                <option value="716800">700K</option>
								                <option value="819200">800K</option>
								                <option value="921600">900K</option>
								                <option value="1024000">1M</option>
								                <option value="2048000">2M</option>
								                <option value="4096000">4M</option>
							                </select>
						                </td>
                                    </tr>
                                    <tr<%=haveSpace?"":" style='display:none'"%>>
						                <td>个人空间附<br />件总字节数:</td>
						                <td>
							                <cc1:TextBox id="maxspaceattachsize" runat="server" HintInfo="设置用户在个人空间中可以上传附件的字节总数." HintTitle="提示" 
							                CanBeNull="必填" RequiredFieldType="数据校验" Text="0" Size="10"  MaxLength="9"></cc1:TextBox>(单位:字节)
							                <select onchange="document.getElementById('TabControl1_tabPage51_maxspaceattachsize').value=this.value">
								                <option value="">请选择</option>
								                <option value="51200">50K</option>
								                <option value="102400">100K</option>
								                <option value="153600">150K</option>
								                <option value="204800">200K</option>
								                <option value="256000">250K</option>
								                <option value="307200">300K</option>
								                <option value="358400">350K</option>
								                <option value="409600">400K</option>
								                <option value="512000">500K</option>
								                <option value="614400">600K</option>
								                <option value="716800">700K</option>
								                <option value="819200">800K</option>
								                <option value="921600">900K</option>
								                <option value="1024000">1M</option>
								                <option value="2048000">2M</option>
								                <option value="4096000">4M</option>
								                <option value="6144000">6M</option>
								                <option value="8192000">8M</option>
								                <option value="10240000">10M</option>
								                <option value="12288000">12M</option>
								                <option value="14336000">14M</option>
								                <option value="16384000">16M</option>
								                <option value="18432000">18M</option>
								                <option value="20480000">20M</option>
								                <option value="22528000">22M</option>
								                <option value="24576000">24M</option>
								                <option value="26624000">26M</option>
								                <option value="28672000">28M</option>
								                <option value="30720000">30M</option>
							                </select>
						                </td>
                                    </tr>
                                    <tr>
						                <td>允许附件类型:</td>
						                <td>
							                <cc1:CheckBoxList id="attachextensions" runat="server" HintHeight="80" 
							                HintInfo="如果要允许所有附件类型,则不要点选右侧任何附件类型,且具体版块设置优先于用户组设置" HintTitle="提示" RepeatColumns="3"></cc1:CheckBoxList>
						                </td>
                                    </tr>
                                </table>
                            </td>
                            <td class="panelbox" width="50%" align="right">
                                <table width="100%">
			                        <tr>
						                <td style="width: 90px">用户组名称:</td>
						                <td>
						                    <cc1:TextBox id="groupTitle" runat="server" CanBeNull="必填" RequiredFieldType="暂无校验" width="180"  MaxLength="50"></cc1:TextBox>
						                </td>
					                </tr>
					                <tr>
						                <td>星星数:</td>
						                <td>
							                <cc1:TextBox id="stars" runat="server" CanBeNull="必填" RequiredFieldType="数据校验" Text="0" Size="5" MaxLength="4" HintInfo="该用户组显示的星星数"></cc1:TextBox>
							                <asp:RegularExpressionValidator id="RegularExpressionValidator2" runat="server" ControlToValidate="stars" 
                                             ErrorMessage="请输入正整数或者零" ValidationExpression="^[0-9]*$">
                                             </asp:RegularExpressionValidator>
						                </td>
					                </tr>
					                <tr>
						                <td>主题最高售价:</td>
						                <td>
							                <cc1:TextBox id="maxprice" runat="server" CanBeNull="必填" RequiredFieldType="数据校验" Text="0" Size="5" MaxLength="4" HintInfo="主题出售使得作者可以将自己发表的主题隐藏起来,只有当浏览者向作者支付相应的交易积分后才能查看主题内容.此处设置用户出售主题时允许设置的最高价格,0 为不允许用户出售."></cc1:TextBox>
							                <asp:RegularExpressionValidator id="RegularExpressionValidator3" runat="server" ControlToValidate="maxprice" 
                                             ErrorMessage="请输入正整数或者零" ValidationExpression="^[0-9]*$">
                                             </asp:RegularExpressionValidator>
						                </td>
					                </tr>
					                <tr>
						                <td>签名最多字节:</td>
						                <td>
							                <cc1:TextBox id="maxsigsize" runat="server" CanBeNull="必填" RequiredFieldType="数据校验" Text="0" Size="5"  MaxLength="4" HintInfo="设置用户签名最大字节数,0 为不允许用户使用签名"></cc1:TextBox>
							                <asp:RegularExpressionValidator id="RegularExpressionValidator4" runat="server" ControlToValidate="maxsigsize" 
                                            ErrorMessage="请输入正整数或者零" ValidationExpression="^[0-9]*$">
                                            </asp:RegularExpressionValidator>
						                </td>
					                </tr>
					                <tr>
						                <td>论坛每天允许上<br />传附件总字节数:</td>
						                <td>
							                <cc1:TextBox id="maxsizeperday" runat="server" HintInfo="设置用户每 24 小时可以上传的附件总字节数.注意: 本功能会加重服务器负担,建议仅在必要时使用." 
							                HintTitle="提示" CanBeNull="必填" RequiredFieldType="数据校验" Text="0" Size="10"  MaxLength="9"></cc1:TextBox>(单位:字节)
							                <select onchange="document.getElementById('TabControl1_tabPage51_maxsizeperday').value=this.value">
								                <option value="">请选择</option>
								                <option value="51200">50K</option>
								                <option value="102400">100K</option>
								                <option value="153600">150K</option>
								                <option value="204800">200K</option>
								                <option value="256000">250K</option>
								                <option value="307200">300K</option>
								                <option value="358400">350K</option>
								                <option value="409600">400K</option>
								                <option value="512000">500K</option>
								                <option value="614400">600K</option>
								                <option value="716800">700K</option>
								                <option value="819200">800K</option>
								                <option value="921600">900K</option>
								                <option value="1024000">1M</option>
								                <option value="2048000">2M</option>
								                <option value="4096000">4M</option>
								                <option value="6144000">6M</option>
								                <option value="8192000">8M</option>
								                <option value="10240000">10M</option>
								                <option value="12288000">12M</option>
								                <option value="14336000">14M</option>
								                <option value="16384000">16M</option>
								                <option value="18432000">18M</option>
								                <option value="20480000">20M</option>
								                <option value="22528000">22M</option>
								                <option value="24576000">24M</option>
								                <option value="26624000">26M</option>
								                <option value="28672000">28M</option>
								                <option value="30720000">30M</option>
							                </select>
						                </td>
					                </tr>
					                <tr<%=haveAlbum?"":" style='display:none'"%>>
						                <td>相册空间<br />总字节数:</td>
						                <td>
							                <cc1:TextBox id="maxspacephotosize" runat="server" HintInfo="设置用户在相册中可以上传照片的字节总数 ." HintTitle="提示" 
							                CanBeNull="必填" RequiredFieldType="数据校验" Text="0" Size="10"  MaxLength="9"></cc1:TextBox>(单位:字节)
							                <select onchange="document.getElementById('TabControl1_tabPage51_maxspacephotosize').value=this.value">
								                <option value="">请选择</option>
								                <option value="51200">50K</option>
								                <option value="102400">100K</option>
								                <option value="153600">150K</option>
								                <option value="204800">200K</option>
								                <option value="256000">250K</option>
								                <option value="307200">300K</option>
								                <option value="358400">350K</option>
								                <option value="409600">400K</option>
								                <option value="512000">500K</option>
								                <option value="614400">600K</option>
								                <option value="716800">700K</option>
								                <option value="819200">800K</option>
								                <option value="921600">900K</option>
								                <option value="1024000">1M</option>
								                <option value="2048000">2M</option>
								                <option value="4096000">4M</option>
								                <option value="6144000">6M</option>
								                <option value="8192000">8M</option>
								                <option value="10240000">10M</option>
								                <option value="12288000">12M</option>
								                <option value="14336000">14M</option>
								                <option value="16384000">16M</option>
								                <option value="18432000">18M</option>
								                <option value="20480000">20M</option>
								                <option value="22528000">22M</option>
								                <option value="24576000">24M</option>
								                <option value="26624000">26M</option>
								                <option value="28672000">28M</option>
								                <option value="30720000">30M</option>
							                </select>
						                </td>
					                </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
				</cc3:TabPage>
                <cc3:TabPage Caption="权限信息" ID="tabPage22">
                    <uc1:UserGroupPowerSetting ID="usergrouppowersetting" runat="server" />
				</cc3:TabPage>
                <cc3:TabPage Caption="管理权限设置" ID="tabPage33">
                    <table cellspacing="0" cellpadding="4" width="100%" align="center">
                        <tr>
                            <td  class="panelbox" width="100%">
                                <table width="100%">
                                    <tr>
							            <td style="width: 100px">操作权限设置:</td>
							            <td>
								            <cc1:CheckBoxList id="admingroupright" runat="server" Width="500px" Font-Size="12px">
									            <asp:ListItem Value="alloweditpost">允许编辑帖子</asp:ListItem>
									            <asp:ListItem Value="alloweditpoll">允许编辑投票</asp:ListItem>
									            <asp:ListItem Value="allowdelpost">允许删除帖子</asp:ListItem>
									            <asp:ListItem Value="allowmassprune">允许批量删除</asp:ListItem>
									            <asp:ListItem Value="allowviewip">允许查看IP</asp:ListItem>
									            <asp:ListItem Value="allowedituser">允许编辑用户</asp:ListItem>
									            <asp:ListItem Value="allowviewlog">允许查看论坛运行记录</asp:ListItem>
									            <asp:ListItem Value="disablepostctrl">发帖不受审核、过滤、灌水等限制</asp:ListItem>
									            <asp:ListItem Value="allowviewrealname">允许查看用户实名</asp:ListItem>									
									            <asp:ListItem Value="allowbanuser">允许禁止用户</asp:ListItem>
									            <asp:ListItem Value="allowbanip">允许禁止IP</asp:ListItem>
									            <asp:ListItem Value="allowreportusergroup">是否允许接收举报信息</asp:ListItem>
									            <asp:ListItem Value="allowphotomangegroupsp">是否允许管理图片评论</asp:ListItem>
								            </cc1:CheckBoxList>
							            </td>
                                    </tr>
                                    <tr>
							            <td>是否允许置顶:</td>
							            <td>
							                <cc1:DropDownList id="allowstickthread" runat="server">
							                <asp:ListItem Value="0">不允许</asp:ListItem>
							                <asp:ListItem Value="1">允许本版内置顶</asp:ListItem>
							                <asp:ListItem Value="2">允许分类内置顶</asp:ListItem>
							                <asp:ListItem Value="3">执行任意置顶</asp:ListItem>
							                </cc1:DropDownList>
							            </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
			    </cc3:TabPage>
			</cc3:TabControl>
	        </td></tr>
	        </table>
	        <div class="Navbutton">
			    <cc1:Button id="AddUserGroupInf" runat="server" Text=" 提 交 " ValidateForm="true"></cc1:Button>&nbsp;&nbsp;
			    <button type="button" class="ManagerButton" id="Button3" onclick="window.history.back();"><img src="../images/arrow_undo.gif"/> 返 回 </button>
	        </div>	        
	        <div id="topictypes" style="display:none;width:100%;">
				<tr>
					<td class="td2">积分下限:</td>
					<td class="td2">
							<cc1:TextBox id="creditshigher" runat="server" CanBeNull="必填" RequiredFieldType="数据校验" Text="0" width="100"></cc1:TextBox></td>
				</tr>
				<tr>
					<td class="td1">积分上限:</td>
					<td class="td1">
						<cc1:TextBox id="creditslower" runat="server" CanBeNull="必填" RequiredFieldType="数据校验" Text="0" width="100"></cc1:TextBox></td>
				</tr>
				<tr>
					<td class="td1">用户组头像:</td>
					<td class="td1">
						<cc1:TextBox id="groupavatar" runat="server" RequiredFieldType="暂无校验" width="80%"></cc1:TextBox>
					</td>
				</tr>				
			</div>			   
		</form>
		<%=footer%>
	</body>
</html>
